package com.healthbox.appointmentservice.DTO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalTime;

/**
 * @author pengpeng
 * @date 2022/5/8
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(value = "用户查询可预约信息参数")
public class LimitQueryDTO {
    @ApiModelProperty(value = "想要预约的日期", example = "2022-05-20")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate date;
    @ApiModelProperty(value = "想要预约机构", example = "1")
    private Long hospitalId;
    @ApiModelProperty(value = "一次返回的最大数目", example = "20")
    private Integer pageSize;
    @ApiModelProperty(value = "如果查询结果多余该数目返回第几页", example = "0")
    private Integer pageIndex;
}
